# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1496.1.13 -> 1.1496.1.14 # arch/ia64/kernel/acpi.c 1.55 -> 1.56 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/12/19 steiner@sgi.com 1.1496.1.14 # [PATCH] ia64: prevent buffer-overrun in acpi_numa_memory_affinity_init() # # The code in acpi_numa_memory_affinity_init that sorts the node_memblk # can overrun the array & clobber the memory that follows the end of the # array. The error will be seen only on systems that fill the # node_memblk array and only if SAL doesnt sort the entries in the SRAT. # -------------------------------------------- # diff -Nru a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c --- a/arch/ia64/kernel/acpi.c Sat Dec 20 00:39:35 2003 +++ b/arch/ia64/kernel/acpi.c Sat Dec 20 00:39:35 2003 @@ -413,7 +413,7 @@ break; } if (p < pend) { - for (q = pend; q >= p; q--) + for (q = pend - 1; q >= p; q--) *(q + 1) = *q; } p->start_paddr = paddr;